package com.itvkt.mybatis.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.itvkt.mybatis.pojo.Role;

public interface RoleMapper {
	public int insertRole(Role role);

	public int deleteRole(Long id);

	public int updateRole(Role role);

	public Role getRole(Long id);

	public List<Role> findRoles(String roleName);
	
	public List<Role> findRolesByAnnotation(@Param("roleName") String rolename, @Param("note") String note);

	public List<Role> findByRowBounds(@Param("roleName") String roleName, @Param("note") String note, RowBounds rowBounds);
}
